﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.DALFactory;
using AspNetCs.IDAL;
using AspNetCs.Model;
using System.Data;
namespace AspNetCs.Bll
{
    public class Province
    {
        private IProvince pro = Conn.CreateProvince();

        public int Add(Province_Model model)
        {
            if (model == null)
            {
                return -1;
            }
            return pro.Add(model);


        }
        public int del(int id)
        {
            if (id <= 0) return -1;
            return pro.del(id);


        }
        public DataTable ProvinceList()
        {
            return pro.ProvinceList();
        }
        public int update(Province_Model model)
        {
            if (model == null)
            {
                return -1;
            }
            return pro.update(model);
        }
        public void UpdateOrder(int id)
        {
            pro.UpdateOrder(id);
        }

        public Province_Model GetModel(string filter)
        {
            return pro.GetModel(filter);
        }

    }
}
